package com.bgds.sys.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author lj
 */
@Data
@TableName("bgds_device_fault")
@ApiModel(value = "设备故障")
public class DeviceFault implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */

    @TableId(value = "ID", type = IdType.AUTO)
    @ApiModelProperty(value = "唯一标识(自增长)",dataType = "Long")
    private Long id;

    @ApiModelProperty(value = "故障开始时间",dataType = "Date")
    private Long faultStartTime;

    @ApiModelProperty(value = "故障结束时间",dataType = "Date")
    private Long faultEndTime;

    @ApiModelProperty(value = "历时(分钟)",dataType = "Integer")
    private Integer duration;

    @ApiModelProperty(value = "作业线",dataType = "Integer")
    private String operationLine;

    @ApiModelProperty(value = "事故内容",dataType = "String")
    private String faultContent;

    @ApiModelProperty(value = "事故名称",dataType = "String")
    private String faultName;

    @ApiModelProperty(value = "事故属性",dataType = "Integer")
    private String faultAttr;

    @ApiModelProperty(value = "事故原因",dataType = "String")
    private String reason;

    @ApiModelProperty(value = "事故措施",dataType = "String")
    private String measures;

    @ApiModelProperty(value = "责任人",dataType = "String")
    private String blameBy;

    @ApiModelProperty(value = "专业属性",dataType = "Integer")
    private String  specialityAttr;

    @ApiModelProperty(value = "备注",dataType = "String")
    private String remarks;

    @ApiModelProperty(value = "填写人",dataType = "String")
    private String createBy;

    @ApiModelProperty(value = "填写时间",dataType = "Date")
    private Long createTime;
}
